<?php
    $mem = new Memcache;

    $mem->addServer('127.0.0.1','11211');

    //$list = array(1,2,3,4,5);
    //村数据
    //$mem->set('list',$list,MEMCACHE_COMPRESSED,10);


    $list = $mem->get('list');

    var_dump($list);
?>
